//
//  MeCellBtn.m
//  jingdongfang
//
//  Created by MTiMac02 on 2017/8/19.
//  Copyright © 2017年 kevinLY. All rights reserved.
//

#import "MeCellBtn.h"

@implementation MeCellBtn

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        self.imageV = [[UIImageView alloc] init];
        self.label = [[UILabel alloc] init];
        self.numLabel=[[UILabel alloc]init];

    };
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    [self addSubview:self.imageV];
    [self addSubview:self.label];
    [self addSubview:self.numLabel];
    NSString *klanguage = [[NSUserDefaults standardUserDefaults] objectForKey:KLanguage];
    
    self.imageV.frame = CGRectMake((KViewWeight - 40)/2, GSCALE(35), 45, 45);
    self.label.frame = CGRectMake(0, KViewHeight - GSCALE(67), KViewWeight, GSCALE(20));
    self.numLabel.frame = CGRectMake(0, KViewHeight - GSCALE(45), KViewWeight, GSCALE(15));
    
    self.imageV.contentMode = UIViewContentModeScaleAspectFit;
    self.label.font = [UIFont font14];
    if ([klanguage containsString:@"en"]) {
        self.label.font=[UIFont font12];
    }
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.textColor = [UIColor c4Color];
    
    self.numLabel.font = [UIFont font12];
    self.numLabel.textAlignment = NSTextAlignmentCenter;
    self.numLabel.textColor = [UIColor c5Color];
  
    self.imageV.backgroundColor = [UIColor clearColor];

}


@end
